package com.kfly.invoke;

public class Person {
	private String name;
	private String sex;

	public Person(String name,String sex){
		this.name = name;
		this.sex = sex;
	}
	
	public String getName() {
		System.out.println("getname,invoke work");
		return name;
	}
	public void setName(String name) {
		System.out.println(name);
		System.out.println("it work right");
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
}
